package reflect;

import reflect.annotations.AutoRunClass;
import reflect.annotations.AutoRunMethod;

@AutoRunClass
public class Student {
    private String name = "学生";


    public void study() {
        System.out.println(name + ":good good study!day day up!");
    }

    @AutoRunMethod(7)
    public void playGame() {
        System.out.println(name + ":打游戏");
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                '}';
    }
}
